package com.wk.controller;

import com.wk.entity.Result;
import com.wk.service.CmfzLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("log")
public class LogController {

    @Autowired
    private CmfzLogService cmfzLogService;

    @RequestMapping("findAll")
    public Result findAll(Integer page, Integer limit, String name){

        return cmfzLogService.findAll(page, limit, name);
    }

    @RequestMapping("delete")
    public Result delete(Integer id){
        return cmfzLogService.delete(id);
    }
}
